﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Proyecta.template
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            this.Autenticacion();

   
        }


        private void Autenticacion() {

            if (!String.IsNullOrEmpty(Session["user_id"].ToString()) || !String.IsNullOrEmpty(Session["user_rol"].ToString()))
            {
                
            }
            else {
                this.logout(); 
            }

        }

        private void logout() {
            Response.Redirect("./Home/");
        }

    }
}